#ifndef _HTTPBUFFERALLOCATOR_HPP_
#define _HTTPBUFFERALLOCATOR_HPP_

#include "jhdefs.hpp"
#include "net/MemoryPool.hpp"

NET_NAMESPACE_BEGIN

class CHTTPBufferAllocator
{
public:
	static char* allocate(std::streamsize size);
	static void deallocate(char* ptr, std::streamsize size);

	enum
	{
		BUFFER_SIZE = 4096
	};

private:
	static CMemoryPool m_pool;
};

NET_NAMESPACE_END

#endif
